﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace duia.Canteenpay.ViewModel.Users
{
    /// <summary>
    /// 新增系统用户
    /// </summary>
    public class AddUsersModelReceive
    {
        /// <summary>
        /// 用户名称
        /// </summary>
        [DisplayName("用户名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string UserName { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        [DisplayName("用户密码"), Required(ErrorMessage = "{0}不能为空"), MinLength(6, ErrorMessage = "{0}最少{1}位")]
        public string UserPassWord { get; set; }

        /// <summary>
        /// 登录账号
        /// </summary>
        [DisplayName("登录账号"), Required(ErrorMessage = "{0}不能为空"), MinLength(6, ErrorMessage = "{0}最少{1}位")]
        public string Account { get; set; }


    }
}
